package com.zxb.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zxb.common.annotation.Excel;
import com.zxb.common.core.domain.BaseEntity;

/**
 * 蜂箱对象 beehives
 * 
 * @author YY
 * @date 2024-10-14
 */
public class Beehives extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 蜂箱id */
    private Long beehiveId;

    /** 在线状态 */
    @Excel(name = "在线状态")
    private Long onlineStatus;

    /** 蜂箱日增重 */
    @Excel(name = "蜂箱日增重")
    private BigDecimal dailyWeightGain;

    /** 蜜蜂每日出勤率 */
    @Excel(name = "蜜蜂每日出勤率")
    private BigDecimal dailyAttendance;

    /** 蜂箱最后一次在线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "蜂箱最后一次在线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastOnlineTime;

    /** 蜂箱图片 */
    @Excel(name = "蜂箱图片")
    private String beehiveImage;

    /** 蜂箱编号 */
    @Excel(name = "蜂箱编号")
    private String beehiveCode;

    /** 蜂箱创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "蜂箱创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beehiveCreatedAt;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 蜂箱数据信息 */
    private List<Beehivedata> beehivedataList;

    public void setBeehiveId(Long beehiveId) 
    {
        this.beehiveId = beehiveId;
    }

    public Long getBeehiveId() 
    {
        return beehiveId;
    }
    public void setOnlineStatus(Long onlineStatus) 
    {
        this.onlineStatus = onlineStatus;
    }

    public Long getOnlineStatus() 
    {
        return onlineStatus;
    }
    public void setDailyWeightGain(BigDecimal dailyWeightGain) 
    {
        this.dailyWeightGain = dailyWeightGain;
    }

    public BigDecimal getDailyWeightGain() 
    {
        return dailyWeightGain;
    }
    public void setDailyAttendance(BigDecimal dailyAttendance) 
    {
        this.dailyAttendance = dailyAttendance;
    }

    public BigDecimal getDailyAttendance() 
    {
        return dailyAttendance;
    }
    public void setLastOnlineTime(Date lastOnlineTime) 
    {
        this.lastOnlineTime = lastOnlineTime;
    }

    public Date getLastOnlineTime() 
    {
        return lastOnlineTime;
    }
    public void setBeehiveImage(String beehiveImage) 
    {
        this.beehiveImage = beehiveImage;
    }

    public String getBeehiveImage() 
    {
        return beehiveImage;
    }
    public void setBeehiveCode(String beehiveCode) 
    {
        this.beehiveCode = beehiveCode;
    }

    public String getBeehiveCode() 
    {
        return beehiveCode;
    }
    public void setBeehiveCreatedAt(Date beehiveCreatedAt) 
    {
        this.beehiveCreatedAt = beehiveCreatedAt;
    }

    public Date getBeehiveCreatedAt() 
    {
        return beehiveCreatedAt;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public List<Beehivedata> getBeehivedataList()
    {
        return beehivedataList;
    }

    public void setBeehivedataList(List<Beehivedata> beehivedataList)
    {
        this.beehivedataList = beehivedataList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("beehiveId", getBeehiveId())
            .append("onlineStatus", getOnlineStatus())
            .append("dailyWeightGain", getDailyWeightGain())
            .append("dailyAttendance", getDailyAttendance())
            .append("lastOnlineTime", getLastOnlineTime())
            .append("beehiveImage", getBeehiveImage())
            .append("beehiveCode", getBeehiveCode())
            .append("beehiveCreatedAt", getBeehiveCreatedAt())
            .append("userId", getUserId())
            .append("beehivedataList", getBeehivedataList())
            .toString();
    }
}
